package com.yiweikeji.project.core.interceptor;

import com.yiweikeji.project.core.BaseUser;

public class ThreadUser {

	private static ThreadLocal<BaseUser> local = new ThreadLocal<BaseUser>();

	public static void putLoginUser(BaseUser user) {
		local.set(user);
	}

	public static BaseUser getLoginUser() {
		return local.get();
	}

	public static void remove() {
		local.remove();
	}

}
